﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainDriver.DomainModeling.Attributes
{
    public sealed class NotEqualToValueAttribute : Attribute
    {
        private object m_InvalidValue;

        public NotEqualToValueAttribute(object invalidValue)
            : base()
        {
            if (invalidValue == null)
            {
                throw new ApplicationException();
            }
            m_InvalidValue = invalidValue;
        }

        public object InvalidValue
        {
            get { return m_InvalidValue; }
        }
    }
}